package com.tony.dao;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.stereotype.Component;

// 增强Userdao方法，实现解耦
@Component
@Aspect
public class UserProxy {

    @Before("execution(* com.tony.dao.UserDao.add(..))")
    public void before(){
        System.out.println("增强方法before......");
    }

}
